/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package view;

import Model.Aluno;
import javafx.scene.Node;
import javafx.scene.control.Tab;
import javafx.scene.layout.BorderPane;

/**
 *
 * @author Lukas
 */
public class AlunoAba extends Tab {
    
    BorderPane borderPane;
    
   Node criaFormulario;

    public AlunoAba() {
        borderPane = new BorderPane();
        montaTopo();
        //  montaCentro_formulario();
        //  montaCentro_consulta();
        //criaFormulario = 
        
        setContent(borderPane);
    }

    public void montaTopo() {
        borderPane.setTop(new TelaAluno().criaMenu(this));
    }

    public void montaCentro_formulario() {
        borderPane.setCenter(new TelaAlunoFormulario());
    }
    
    public void montaCentro_formulario_edicao(Aluno aluno) {
        borderPane.setCenter(new TelaAlunoFormulario(aluno));
    }

   
    public void montaCentro_consulta() {
        borderPane.setCenter(new TelaAlunoConsulta(this));
    }
      
       
}

